using System;
using InfoTech.Core.Data.SqlClient;
using InfoTech.Core.Service;
using InfoTech.LanTranh.MucVu.Bussiness;

namespace InfoTech.LanTranh.MucVu.Service
{
    public class GIAODAN_DIACHIService : BaseService
    {
        public static bool Check_Insert_GIAODAN_DIACHI(GIAODAN_DIACHI giaodanDiaChi)
        {
            return true;
        }

        public static bool Check_Update_GIAODAN_DIACHI(GIAODAN_DIACHI giaodanDiaChi)
        {
            return true;
        }

        public static bool Check_Delete_GIAODAN_DIACHI(string[] strings)
        {
            return true;
        }

        public static void Delete(GIAODAN_DIACHI giaodanDiachi)
        {

        }

        public static void Delete(GIAODAN giaodanDiachi)
        {
            foreach (GIAODAN_DIACHI diachi in giaodanDiachi.REF_GIAODAN_DIACHI)
            {
                diachi.DeletebyId();
            }
        }

        public static void Delete(HOGIADINH_DIACHI hogiadinhDiachi)
        {
            foreach (GIAODAN_DIACHI giaodanDiachi in hogiadinhDiachi.REF_GIAODAN_DIACHI)
            {
                giaodanDiachi.DeletebyId();
            }
        }
    }
}
